package com.wj.rpsm.user.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.time.LocalDateTime;

/**
 * @author WeiJin
 * @version 1.0
 */
@Data
@ApiModel("帖子信息")
public class Message {

    @ApiModelProperty("帖子id")
    private Integer message_id;
    @ApiModelProperty("发帖人id")
    private Integer message_userid;
    @ApiModelProperty("帖子内容")
    private String message_content;
    @ApiModelProperty("发帖时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime message_publish_time;
    @ApiModelProperty("帖子标题")
    private String message_title;
    @ApiModelProperty("帖子点赞量")
    private Integer message_like;
    @ApiModelProperty("帖子取消量")
    private Integer message_unlike;
    @ApiModelProperty("帖子浏览量")
    private Integer message_browse;

}
